#ifndef INFINITY_HELPERS_H
#	define INFINITY_HELPERS_H

namespace infinity {

struct Helpers
{
	static Vector3i positionToCell(const Vector3f& position)
	{
		Vector3i cell;

		cell.x = (dw::int32)position.x - (position.x < 0.0f ? 1 : 0);
		cell.y = (dw::int32)position.y - (position.y < 0.0f ? 1 : 0);
		cell.z = (dw::int32)position.z - (position.z < 0.0f ? 1 : 0);

		return cell;
	}
};

} // namespace infinity

#endif // !INFINITY_HELPERS_H
